Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add run-wasm and --include-all-builtins #188

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

Rob23oba
Copy link
Contributor

This pr adds the command run-wasm and the option --include-all-builtins:

  • run-wasm: Runs a compiled wasm binary. Warns if the binary doesn't have debug information and provide error ids instead of messages
  • --include-all-builtins: Forces all builtins to be included into the wasm. Use porf --include-all-builtins -e ';' -b to get the size of all builtins together in one wasm.
    Also fixes "Math.random(); Porffor.randomByte();" fails #187.

@Rob23oba
Copy link
Contributor Author

Also adds --size-log and --size-log-count:

  • --size-log: Show the functions with the highest amount of instructions
  • --size-log-count: How many instructions to show for --size-log

compiler/assemble.js Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Math.random(); Porffor.randomByte();" fails
2 participants